import urllib.request
def url_to_image_data(url):
	data = None
	stream = urllib.request.urlopen(url)
	data = stream.read()
	stream.close()

	return data
